package com.booktrade.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.booktrade.dto.BookSearchDTO;
import com.booktrade.entity.Books;

/**
 * <p>
 * 书籍表，存储所有二手书籍的详细信息 服务类
 * </p>
 *
 */
public interface IBooksService extends IService<Books> {

    void publish(Books books, Integer userId);

    void updateBook(Books books, Integer userId);

    Page<Books> listBooksPage(BookSearchDTO bookSearchDTO);
}
